package com.fzz.learning_forum.service;

import com.fzz.learning_forum.domain.Article;
import com.fzz.learning_forum.domain.Comment;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CommentService {

    //发表评论
    public Integer publishComment(Comment comment);

    //分页查询评论信息
    public PageInfo<Comment> selectCommentWithPage(Integer article_id,Integer page,Integer count);

    //查询我评论过的动态
    public PageInfo<Article> myCommentArticle(Integer id, Integer page, Integer count);

    //最新评论
    public List<Comment> selectNewComment(Integer id);
}
